@charset "UTF-8";

.page-news {
  position: relative;
  height: 100vh;
  // background: url('../../img/news/bg.jpg') no-repeat center 0;
}

/* 背景 */
.bg {
  position: absolute;
  inset: 0;
  img {
    width: 100%;
    height: 100%;
  }
}

/* 下载 */
.download {
  position: absolute;
  top: 50vh;
  left: 50%;
  width: 328px;
  height: 74px;
  transform: translate(-50%);
}

.content-wrapper {
  position: absolute;
  top: 65vh;
  left: 50%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 1100px;
  transform: translate(-50%);
}

/* 轮播 */
.carousel {
  position: relative;
  width: 458px;
  height: 225px;
  &:hover {
    .carousel-arrow {
      opacity: 0.8;
    }
  }

  /* 轮播图 */
  .carousel-imgs img {
    width: 100%;
    border-radius: 8px;
  }

  /* 轮播指示器 */
  .carousel-cursor {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 190px;
    margin: 0 auto;
    .item {
      width: 30px;
      height: 20px;
      cursor: pointer;
      opacity: 0.48;
      transition: all 0.3s;
      &::after {
        position: relative;
        top: 9px;
        display: block;
        height: 2px;
        content: '';
        background-color: #fff;
      }
      &:hover,
      &.active {
        opacity: 1;
      }
    }
  }

  /* 轮播箭头 */
  .carousel-arrow {
    $height_arrow: 36px;

    position: absolute;
    top: 50%;
    width: $height_arrow;
    height: $height_arrow;
    background-color: #333;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translate(0, -50%);
    transition: all 0.3s;
    &::after {
      display: block;
      height: $height_arrow;
      line-height: $height_arrow;
      text-align: center;
      content: '<';
      font-size: 16px;
      color: #ddd;
    }
    &.carousel-arrow--left {
      left: 20px;
      &::after {
        content: '<';
      }
    }
    &.carousel-arrow--right {
      right: 20px;
      &::after {
        content: '>';
      }
    }
    &:hover {
      opacity: 1;
    }
  }
}

/* 新闻列表 */
.news {
  width: 620px;
  height: 225px;
  padding: 20px 20px;
  background-color: #616261;
  border-radius: 12px;
  .top-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    font-size: 16px;
    background: url('../../img/news/line.png') repeat-x 0 30px;

    /* 分类标题 */
    .category-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .category {
        position: relative;
        width: 91px;
        text-align: center;
        color: #fff;
        &::after {
          position: absolute;
          right: 0;
          left: 0;
          bottom: -18px;
          display: none;
          height: 20px;
          content: '';
          background: url('../../img/news/arrow.png') no-repeat;
        }
        &.active {
          color: #b8a26c;
          &::after {
            display: block;
          }
        }
      }
    }

    .more {
      margin-right: 14px;
      padding: 0 10px;
      border: 1px solid rgb(211, 211, 211);
      color: rgb(211, 211, 211);
    }
  }

  .list {
    margin-top: 20px;
    .item {
      display: flex;
      align-items: flex-start;
      height: 35px;
      font-size: 16px;
      background: url('../../img/news/dashedline.png') repeat-x 0 32px;

      .category {
        padding: 0 5px;
        border: 1px solid rgb(219, 112, 64);
        color: rgb(219, 112, 64);
      }
      .title {
        flex: 1;
        margin: 0 10px;
        color: #ccc;
      }
      .date {
        margin-right: 18px;
        color: rgb(211, 211, 211);
      }
    }
  }
}

/* 提示 */
.tip {
  position: fixed;
  top: 100px;
  right: 40px;
  .item {
    margin-bottom: 10px;
  }
  img {
    width: 40px;
  }
}